tokio_eld provides a histogram-based sampler for recording and analyzing
event loop delays in a current_thread Tokio runtime. The API is similar to
Node.js's perf_hooks.monitorEventLoopDelay()
.
use EldHistogram;
let mut histogram = new?; // 20 ms resolution
h.start;
// do some work
h.stop;
println!;
println!;
println!;
println!;
println!;
println!;